package com.cskaoyan.service;

import com.cskaoyan.dao.UserDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @author stone
 * @date 2022/06/16 10:18
 */
// 组件id默认值是orderServiceImpl
@Component
public class OrderServiceImpl2 implements OrderService{

    @Autowired
    @Qualifier("userDaoImpl2")
    UserDao userDao; // = new UserDaoImpl();

    //userDaoImpl
    @Resource(name = "userDaoImpl")
    UserDao userDao1;

    /*public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }*/
}
